//
//  DYProgressHUD.h
//  dyss_v2
//
//  Created by LXF on 16/1/26.
//  Copyright © 2016年 First Facility. All rights reserved.
//

#import "SVProgressHUD.h"

#define showHudSuccess(string,...) {\
    NSString *msg = [NSString stringWithFormat:string,##__VA_ARGS__];\
    [DYProgressHUD showSuccessWithStatus:msg];\
}

#define showHudInfo(string,...) {\
    NSString *msg = [NSString stringWithFormat:string,##__VA_ARGS__];\
    [DYProgressHUD showInfoWithStatus:msg];\
}

#define showHudError(string,...) {\
    NSString *msg = [NSString stringWithFormat:string,##__VA_ARGS__];\
    [DYProgressHUD showErrorWithStatus:msg];\
}

#define showHud() {\
    [DYProgressHUD show];\
}

#define showHudWithStatus(string,...) {\
    NSString *msg = [NSString stringWithFormat:string,##__VA_ARGS__];\
    [DYProgressHUD showWithStatus:msg];\
}

#define showHudProgress(progress,string,...) {\
    NSString *msg = [NSString stringWithFormat:string,##__VA_ARGS__];\
    [DYProgressHUD showProgress:progress status:msg];\
}

#define dismissHud() {\
    [DYProgressHUD dismiss];\
}


@interface DYProgressHUD : SVProgressHUD

@end
